package com.chezhujie.www.domain;
import com.xy.core.init.mysql.BaseEntity;
import com.xy.core.init.mysql.annotation.Column;
import com.xy.core.init.mysql.annotation.Entity;
import com.xy.core.init.mysql.annotation.Id;
import com.xy.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/7/11.
 */
@Entity
@Table(name = "czj_settleaccounts",describe = "结算")
public class SettleAccounts extends BaseEntity{
    @Id
    @Column(describe = "主键",length = 19,inputType = "hidden")
    private String settleaccountsId;
    @Column(describe = "订单号",length = 32,inputType = "text")
    private String orderNo;
    @Column(describe = "结算类型",length = 1,inputType = "select",inputCode = "settletype")
    private String settleType;
    @Column(describe = "结算时间",inputType = "date")
    private Date createtime;
    @Column(describe = "结算金额",length = 10,precision = 2,inputType = "decimal")
    private BigDecimal settlementAmount;
    @Column(describe = "商家",length = 19,inputType = "str")
    private String businessId;
    @Column(describe = "年",inputType = "int")//2017-06 ->2017年6月
    private Integer year;
    @Column(describe = "月",inputType = "int")//2017-06 ->2017年6月
    private Integer month;



    public String getSettleaccountsId() {
        return settleaccountsId;
    }

    public void setSettleaccountsId(String settleaccountsId) {
        this.settleaccountsId = settleaccountsId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getSettleType() {
        return settleType;
    }

    public void setSettleType(String settleType) {
        this.settleType = settleType;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public BigDecimal getSettlementAmount() {
        return settlementAmount;
    }

    public void setSettlementAmount(BigDecimal settlementAmount) {
        this.settlementAmount = settlementAmount;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }
}
